package jk.wrapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ResultMap {
	private String curPropId;
	private Resource res;
	private Map<String, List<ResultBean>> retMap = new HashMap<String, List<ResultBean>>();
	
	public Resource getResource() {
		return this.res;
	}
	
	public void setResource(Resource res) {
		this.res = res;
	}
	
	public void setHtmlSource(String htmlSrc) {
		this.res.setHtmlSrc(htmlSrc);
	}
	
	public String getHtmlSource() {
		return this.res.getHtmlSrc();
	}
	
	public void setCurPropId(String id) {
		this.curPropId = id;
	}
	
	public String curPropId() {
		return this.curPropId;
	}
	
	public ResultBean getCurResultBean() {
		return this.getResultBean(curPropId).get(0);
	}
	
	public List<ResultBean> getResultBean(String id) {
		return retMap.get(id);
	}
	
	public ResultBean getResultBeanValue(String id) {
		return retMap.get(id).get(0);
	}
	
	public void putResultMap(String id, List<ResultBean> retBean) {
		retMap.put(id, retBean);
	}
}
